﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="listTimKiemNguoiTimNguon.ascx.cs" Inherits="admin_listTimKiemNguoiTimNguon" %>
<table cellspacing="0" cellpadding="0" width="100%" class="cssTable" >
    <tr>
		<td colspan="6" align="left" td class="HeadingTree" >Danh sách Người tìm nguồn</td>
	</tr>
	<tr>
		<td align="left" valign="top" style="height:524px;">
            <table cellspacing="0" cellpadding="3" width="100%" border="0">
	            <tr>
		            <td colspan="5" align="left">
		                <asp:validationsummary id="vdsNguoiTimNguon" CssClass="cssManField" runat="server" Font-Bold="True" BorderWidth="0" />
		                <asp:label id="lblMess" CssClass="cssManField" runat="server" />
		            </td>
	            </tr>
	            <tr>
		            <td align="right" style="width:15%;">
			            <asp:label id="lblHoTen" CssClass="cssManField" runat="server" Text="<U>H</U>ọ tên:" />
		            </td>
		            <td style="width:30%;">
		                <asp:textbox id="txtHoTen" accessKey="n"   runat="server" MaxLength="256" Width="200px" />
		            </td>
		            <td style="width:15%;" align="right">
			            <asp:label id="lblEmail" CssClass="cssManField" runat="server"  Text="<U>E</U>mail" />
		            </td>
		            <td style="width:20%;" align="left">
			            <asp:textbox id="txtEmail" accessKey="n"    runat="server"  MaxLength="256" Width="200px" />
		            </td>
		            <td align="left" style="width:10%;" >
		                <asp:button id="btnSearch" accessKey="c" CssClass="cssButton" runat="server" Width="98px" Text="Tìm kiếm(c)" />
		            </td>
	            </tr>
	            <tr>
		            <td align="center" colSpan="5">
		                <asp:GridView id="ddlNguoiTimNguon" runat="server" Width="100%" CellPadding="0" CellSpacing="0" 
		                    AutoGenerateColumns="False" AllowPaging="true" 
		                    HeaderStyle-CssClass="cssGridHeader" EditRowStyle-CssClass="cssGridEdit" RowStyle-CssClass="cssGridCell" 
		                    AlternatingRowStyle-CssClass="cssGridAlterCell"  
                            PagerStyle-CssClass="cssGridPager" SelectedRowStyle-CssClass="cssSelectedRow"
				            DataKeyNames="ID" PageSize="16"
				            OnRowDataBound="ddlNguoiTimNguon_RowDataBound" OnRowDeleting="ddlNguoiTimNguon_RowDeleting" 
                            onpageindexchanging="ddlNguoiTimNguon_PageIndexChanging">
            <RowStyle CssClass="cssGridCell"></RowStyle>
				            <Columns>
					            <asp:TemplateField Visible="False">
						            <ItemTemplate>
							            <asp:Label id=NguoiTimNguonID runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.ID") %>' />
						            </ItemTemplate>
					            </asp:TemplateField>
					            <asp:BoundField DataField="Seq" ReadOnly="True" HeaderText="TT" ItemStyle-Width="4%" ItemStyle-HorizontalAlign="Right" />
					            <asp:TemplateField HeaderText="Họ tên" ItemStyle-HorizontalAlign="Left">
						            <ItemTemplate>
							            <asp:Label id="lblHotenGV" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.HoTen") %>' />
						            </ItemTemplate>						
					            </asp:TemplateField>
					            <asp:TemplateField HeaderText="Địa chỉ" ItemStyle-HorizontalAlign="Left">
						            <ItemTemplate>
							            <asp:Label id="lblDiachiGV" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.DiaChi") %>' />
						            </ItemTemplate>						
					            </asp:TemplateField>
					            <asp:TemplateField HeaderText="Email" ItemStyle-HorizontalAlign="Left">
						            <ItemTemplate>
							            <asp:Label id="lblEmailGV" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Email") %>' />
						            </ItemTemplate>						
					            </asp:TemplateField>
					            <asp:TemplateField HeaderText="Di động" ItemStyle-HorizontalAlign="Left">
						            <ItemTemplate>
							            <asp:Label id="lbldidongGV" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.DiDong") %>' />
						            </ItemTemplate>						
					            </asp:TemplateField>				
					            <asp:TemplateField HeaderText="Chức năng" HeaderStyle-HorizontalAlign="Center">
						            <ItemStyle HorizontalAlign="Center" Width="15%"></ItemStyle>
						            <ItemTemplate>
						                 <asp:LinkButton id="btnUpdateGV" accessKey="c" CssClass="cssButton" runat="server" Width="50px" Text="Sửa(c)" ToolTip="Sửa mục từ"  />
						                 <asp:button id="btnDelete" accessKey="c" CssClass="cssButton" runat="server" Width="50px" Text="Xóa(d)" ToolTip="Xóa bản ghi" CommandName="delete" />
						            </ItemTemplate>
					            </asp:TemplateField>					
				            </Columns>

                            <PagerStyle CssClass="cssGridPager"></PagerStyle>
                            <SelectedRowStyle CssClass="cssSelectedRow"></SelectedRowStyle>
                            <HeaderStyle CssClass="cssGridHeader"></HeaderStyle>
                            <EditRowStyle CssClass="cssGridEdit"></EditRowStyle>
                            <AlternatingRowStyle CssClass="cssGridAlterCell"></AlternatingRowStyle>
	                       </asp:GridView>
		            </td>
	            </tr>	
            </table>
		</td>
	</tr>
</table>p>

